package com.lxx.exception;

import com.lxx.common.ErrCode;

/**
 * 数据校验异常
 * @author Administrator
 *
 */
public class ConstraintException extends RuntimeException {

	private static final long serialVersionUID = 6921466781745698861L;
	private ErrCode errCode;

	public ConstraintException(ErrCode errCode) {
		this.errCode = errCode;
	}

	public ConstraintException(ErrCode errCode, String msg) {
		super(msg);
		this.errCode = errCode;
	}

	public ErrCode getErrCode() {
		return errCode;
	}

	public void setErrCode(ErrCode errCode) {
		this.errCode = errCode;
	}
}
